/*
 * Copyright (C), 2002-2017, 苏宁易购电子商务有限公司
 * FileName: StoreCate.java
 * Author:   15050536
 * Date:     2017年3月27日 上午11:40:36
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.suning.sawp.member.dto;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 门店品类关联实体
 * 
 * 店长分配个品类目标金额
 *
 * @author 15050536 石键平
 */
@Entity(name = "mem_store_cates")
public class StoreCate implements Serializable {

	/**
	 */
	private static final long serialVersionUID = 1950224365898546731L;

	/**
	 * 主键
	 */
	private Long id;

	/**
	 * 活动id
	 */
	private Long activityId;

	/**
	 * 门店编码
	 */
	private String storeCode;

	/**
	 * 品类编码
	 */
	private String cateCode;

	/**
	 * 品类名称
	 */
	private String cateName;

	/**
	 * 目标金额
	 */
	private BigDecimal targetAmount;

	public StoreCate() {

	}

	public StoreCate(Long activityId, String storeCode, String cateCode, String cateName, BigDecimal targetAmount) {
		super();
		this.activityId = activityId;
		this.storeCode = storeCode;
		this.cateCode = cateCode;
		this.cateName = cateName;
		this.targetAmount = targetAmount;
	}

	/**
	 * @param id
	 * @param targetAmount
	 */
	public StoreCate(Long id, BigDecimal targetAmount) {
		super();
		this.id = id;
		this.targetAmount = targetAmount;
	}

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "activity_id")
	public Long getActivityId() {
		return activityId;
	}

	public void setActivityId(Long activityId) {
		this.activityId = activityId;
	}

	@Column(name = "store_code")
	public String getStoreCode() {
		return storeCode;
	}

	public void setStoreCode(String storeCode) {
		this.storeCode = storeCode;
	}

	@Column(name = "cate_code")
	public String getCateCode() {
		return cateCode;
	}

	public void setCateCode(String cateCode) {
		this.cateCode = cateCode;
	}

	@Column(name = "cate_name")
	public String getCateName() {
		return cateName;
	}

	public void setCateName(String cateName) {
		this.cateName = cateName;
	}

	@Column(name = "target_amount")
	public BigDecimal getTargetAmount() {
		return targetAmount;
	}

	public void setTargetAmount(BigDecimal targetAmount) {
		this.targetAmount = targetAmount;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}
}
